package 二叉树.printer;

/**
 * 
 * @author MJ Lee
 *
 */
public final class BinaryTrees {

	private BinaryTrees() {
	}

	public static void println(BinaryTreeInfo tree) {
		if (tree == null || tree.root() == null) return;
		new InorderPrinter(tree).println();
	}

	/**
	 * 测试学习代码使用
	 * @param tree
	 */
	public static void printlnTest(BinaryTreeInfo tree) {
		if (tree == null || tree.root() == null) return;
		new InorderPrinterTest(tree).println();
	}

}